package cate.common.table.pvp.guildwar.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("段位")
public class GuildWarRankRow extends ERow {

    @NoteField("起始积分")
    public int begin;

    @NoteField("结束积分")
    public int end;

    @NoteField("段位")
    public int rank;

    @NoteField("段位名称")
    public String rankName;

    @NoteField("赛季奖励")
    public String seasonRwdStr;

    @NoteField("邮件ID")
    public int mailTid;

    @NoteField("获胜宝箱")
    public int winBox;

    @NoteField("失败宝箱")
    public int failBox;


    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.begin = xrw.getInteger("起始积分", 0);
        this.end = xrw.getInteger("结束积分", 0);
        this.rank = xrw.getInteger("段位", 0);
        this.rankName = xrw.getString("段位名称");
        this.seasonRwdStr = xrw.getString("赛季奖励");
        this.mailTid = xrw.getInteger("邮件ID", 0);
        this.winBox = xrw.getInteger("获胜宝箱", 0);
        this.failBox = xrw.getInteger("失败宝箱", 0);
    }

}
